# 循环
names = ['Sam', 'Amy', 'Daming', 'Lingling']
for name in names:
    print(name)

# 0-100累加
rang = range(100)
print(list(rang))

sum1 = 0
for num in list(range(101)):
    sum1 += num
    if num == 20:
        break
print(sum1)

# 100以内奇数累加
n = 99
sum2 = 0
while n > 0:
    sum2 += n
    n -= 2
print(sum2)

# 一个死循环
n = 1
while 1 == 1:
    n *= 2
    print(n)
    print("")
    # if n > 999999999999:
    #   break
